function [ out ] = ClusterNameNormalization(Cls)
%UNTITLED Summary of this function goes here
%   Detailed explanation goes here
tmp = max(Cls)+1;
out = Cls;
id = repmat(0, 1, tmp-1);
for i=1:(tmp-1)
    id(i) = find(Cls == i, 1 );
end
[n_u, ID_sort] = sort(id);
for i=1:(tmp-1)
    out( out==i ) = tmp;
    out( out==ID_sort(i) ) = i;
    out( out==tmp ) = ID_sort(i);
    ID_sort(ID_sort == i) = tmp;
    d = ID_sort(i);
    ID_sort(i) = i;
    ID_sort(ID_sort == tmp) = d;
end